import http from './utils/http'

export function useGetDictTypeApi(): Promise<any> {
  return http.get('/dict/orderType')
}

export function useSubmitApplicationApi(data: any): Promise<any> {
	 return http.post('/projectApply/filed', data)
}

export function useGetIndexOrderApplyApi(data: any): Promise<any> {
	return http.post('/projectApply/page', data)
}
export function useGetOrderApplyInfoApi(id: string): Promise<any> {
	return http.get('/projectApply/info/' + id)
}
export function useDeleteOrderApplyApi(id: string): Promise<any> {
	return http.delete('/projectApply/' + id)
}
export function useGetIndexOrderApi(data: any): Promise<any> {
	return http.post('/project/page', data)
}
export function useGetOrderRecordApi(data: any): Promise<any> {
	return http.post('/project/page', data)
}
export function useGetIndexOrderInfoApi(id: string): Promise<any> {
	return http.get('/project/info?pid=' + id)
}
export function setFieldTemplate(data: object): Promise<any> {
	return http.post('/result', data)
}
export function useGetResultInfo(id: string): Promise<any> {
	return http.get('result/infoByProjectId/' + id)
}